
package com.android.fitnesscenter.view.server;

import android.os.Bundle;

import com.android.fitnesscenter.R;
import com.android.fitnesscenter.version.UpgradeProgress;
import com.android.fitnesscenter.view.AboutBaseActivity;
import com.lidroid.xutils.ViewUtils;

public class ServerAboutActivity extends AboutBaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about_layout);
        ViewUtils.inject(this);
        initTitleBar(getString(R.string.txt_about));
    }

    @Override
    protected void titlebarMethod(int id) {
        switch (id) {
            case R.id.txt_new_version:
                UpgradeProgress upgradeProgress = UpgradeProgress.getInstance();
                upgradeProgress.checkVersion(ServerAboutActivity.this, false, false);
                break;
        }
    }

}
